﻿package net.hcpme.dao;

import com.j256.ormlite.field.DatabaseField;

public class Message {

    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField
    private String from;// 谁发送的，本人发送至服务登录的人暂时未设置

    @DatabaseField
    private String message;

    @DatabaseField
    private String date;

    @DatabaseField
    private int inOrOut;// 发送还是接收 0代表接收，1代表发送

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getInOrOut() {
        return inOrOut;
    }

    public void setInOrOut(int inOrOut) {
        this.inOrOut = inOrOut;
    }

    @Override
    public String toString() {
        return "Message [id=" + id + ", from=" + from + ", message=" + message + ", date=" + date + ", inOrOut=" + inOrOut + "]";
    }

}
